package com.superbytecode.cloud.common.utils.module;

/**
 * All rights Reserved, Designed By www.super-master.com
 *
 * @ProjectName: sanskrit
 * @Package: com.superbytecode.cloud.core.utils.module
 * @ClassName: GenderEnum
 * @Description: []
 * <p> </p>
 * @Author: [Lance Ting]
 * @Date: 2024/8/16 18:14
 * @Version: V1.0
 * @Copyright: 2024 www.super-master.cn Inc. All rights reserved.
 * TODO: 注意,本文件Lance Ting所作,如果转载或使用请标明具体出处!
 **/
/*public enum GenderEnum implements BaseEnum<Character> {
    MALE('M', "男"),//
    FEMALE('F', "女"),
    ;

    static Map<Character, String> enumMap = Arrays.stream(values()).collect(Collectors.toMap(GenderEnum::getCode, GenderEnum::getName));


    final private Character code;
    final private String name;

    GenderEnum(Character code, String name) {
        this.code = code;
        this.name = name;
    }

    @Override
    public Character getCode() {
        return this.code;
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public String getClazz() {
        return "genderEnum";
    }

    @Override
    public String getEnumNameByCode(Character code) {
        return MapUtil.getStr(enumMap, code);
    }

    @Override
    public BaseEnum<Character> toInstance(Character code) {
        Map<Character, GenderEnum> enumMap = Arrays.stream(values()).collect(Collectors.toMap(GenderEnum::getCode, (o) -> {
            return o;
        }));
        return enumMap.get(code);
    }
}*/